package com.cy.wenxinapi.mapper;

import com.cy.wenxinapi.entity.InterviewRecode;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author c
* @description 针对表【interview_recode】的数据库操作Mapper
* @createDate 2024-02-26 11:13:04
* @Entity com.cy.wenxinapi.entity.InterviewRecode
*/
@Mapper
public interface InterviewRecodeMapper extends BaseMapper<InterviewRecode> {


    @Select("SELECT * FROM `chatgpt`.`interview_recode` WHERE `interview_id` = #{interviewID} AND `deleted` = 0")
    List<InterviewRecode> getInterViewRecord(String interviewID);

    @Select("SELECT * FROM `chatgpt`.`interview_recode` WHERE `interview_id` = #{interviewID} AND `deleted` = 0 limit 1")
    InterviewRecode getOneInterViewRecord(String interviewID);
}




